def checkUserLogin(name,passwrd):
    if name == "zhangsan" and passwrd == "888":
        return True
    else: 
        raise ValueError("login failed")
    
check = checkUserLogin("zhangsan","8888")
if check:
    print("login successfully");